package com.hotel.service;

import com.hotel.bean.Department;
import com.hotel.exception.SteduException;

import java.util.List;

public interface DeptService {
    //添加
    boolean insert(Department d) throws SteduException;

    //根据did删除
    boolean delete(Integer did) throws SteduException;

    //根据did修改
    boolean update(Department d) throws SteduException;

    //查询所有
    List<Department> selectAll();

    //根据did查询
    Department selectByDid(Integer did);
    //根据dname查询
    Department selectByDname(String dname);
}
